import request from "./index.ts";

export const getUserInfo = async () => {
     return await request.get("/user/current")
}

export const updateUserInfo = async (data) => {
    return await request.post("/user/updateUser",data)
}

export const getRecommendUser = async () => {
    return await request.get("/user/recommend",{
        params:{
            pageSize: 10,
            pageNum:1
        }
    })
}

export const logout = async () => {
    return await request.post("/user/logout")
}

export const matchsimilarUser = async (data) => {
    return await request.get("/user/match",{
        params:{
            num: data
        }
    })
}